<template>
	<view class="work-content">
		<cu-custom isBack="true"></cu-custom>
		<header-title>
			<block slot="title">工作负责</block>
			<block slot="info">简要说明工作所负责的内容</block>
		</header-title>

		<my-textarea heigth="800rpx" :valMax="valMax" v-model="val" placeholder="1、主要负责新员工入职培训; 2、分析制定员工每月个人销售业绩;3、帮助员工提高每日客单价,整体店面管理等工作"></my-textarea>

		<footer-btn @submit="submitHandle">
			<text slot="text">保存</text>
		</footer-btn>
	</view>
</template>

<script>
	import headerTitle from '../../components/header-title/header-title.vue';
	import footerBtn from '../../components/footer-btn/footer-btn.vue';
	import myTxtarea from '../../components/my-textarea/my-textarea.vue';

	export default {
		components: {
			headerTitle,
			footerBtn,
			myTxtarea
		},
		data() {
			return {
				valMax: 1600,
				val: ''
			};
		},
		onLoad({
			val = ''
		}) {
			this.val = val
		},
		methods: {
			submitHandle() {
				this.$comm.navigateBack()
				uni.$emit('setContent', this.val)
			}
		}
	}
</script>

<style lang="scss">
	.work-content {}
</style>
